import axios from 'axios';
export function request (config){
	const instance01 = new axios.create({
		baseUrl = '',
		timeout: 5000
	})
	//请求拦截器
	instacne01.interceptors.request.use(config =>{
		return config
	}, err=> {
		console.log(err)
	})
	//请求响应器
	instance01.interceptors.response.use(res =>{
		return res.data
	},err=>{
		console.log(err)
	})

	return instance01(config)
}